<template>
    <view class="container">
        <view class="flex ai-center jc-between">
            <view class="flex ai-center">
                <text class="iconfont icon-radio txt-black-204"></text>
                <text class="txt-black-50 txt-22 ml-10">匿名评价</text>
            </view>
            <text class="txt-black-50 txt-22">匿名不需要登录</text>
        </view>
        <view class="card">
            <view class="flex ai-center">
                <image src="@/static/images/demo1.png" class="card-img" />
                <view class="flex flex-col ml-20 flex-1">
                    <text class="txt-black-50 txt-30 txt-w-6">儿童套餐A计划</text>
                    <view class="mt-10 flex ai-center jc-between">
                        <view class="flex ai-center">
                            <text class="txt-24 txt-yellow-225 mt-6">￥</text>
                            <text class="txt-30 txt-yellow-225 txt-w-7">10</text>
                        </view>
                        <text class="txt-black-100 txt-24">2024-09-20</text>
                    </view>
                </view>
            </view>
            <view class="flex ai-center jc-between my-40">
                <view class="card2">
                    <text class="iconfont icon-bumanyi txt-40 mr-20 txt-black-153"></text>
                    <text class="txt-black-50 txt-28">不满意</text>
                </view>
                <view class="card2">
                    <text class="iconfont icon-manyi txt-40  mr-20 txt-black-153"></text>
                    <text class="txt-black-50 txt-28">满意</text>
                </view>
            </view>
            <view class="input-wrap">
                <textarea placeholder="口味效果，可以让更多人有更好的选择.." :maxlength="200" class="txt-24 tx-black-50"/>
                <view class="img-wrap">
                    <text class="iconfont icon-xiangji txt-54 txt-black-151"></text>
                    <text class="txt-black-151 txt-28 mt-10">添加照片</text>
                </view>
                <text class="right-txt">0/200字</text>
            </view>
        </view>
        <button class="btn">提 交</button>
    </view>
</template>

<script setup>

</script>

<style lang="scss" scoped>
.container {
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    padding: 30rpx;
    background-color: rgb(246, 246, 246);

    .card {
        margin-top: 20rpx;
        padding: 30rpx 20rpx;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        background-color: white;
        border-radius: 20rpx;

        &-img {
            width: 100rpx;
            height: 100rpx;
            object-fit: contain;
        }
        .card2{
            flex: 1;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 80rpx;
            background-color: rgba(147, 157, 191, 0.1);
            border-radius: 20rpx;
            &:last-child{
                margin-left: 20rpx;
            }
        }
        .input-wrap{
            position: relative;
            background-color: rgba(228, 228, 228, 0.3);
            padding: 30rpx;
            border-radius: 20rpx;
            box-sizing: border-box;
            height: 400rpx;
            .img-wrap{
                position: absolute;
                left: 30rpx;
                bottom: 30rpx;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                width: 150rpx;
                height: 150rpx;
                border-radius: 10rpx;
                border: 2rpx dashed #ccc;
            }
            .right-txt{
                position: absolute;
                right: 30rpx;
                bottom: 30rpx;
                font-size: 22rpx;
                color: rgba(151, 152, 153, 1);
            }
        }
    }
    .btn{
        position: fixed;
        left: 30rpx;
        right: 30rpx;
        bottom: 40rpx;
        background-color: rgba(225, 163, 72, 1);
        height: 80rpx;
        border-radius: 20rpx;
        color: white;
        font-size: 30rpx;
    }
}
</style>